// pages/world_detail/world_detail.js
// 语言包
var chi = require('../../utils/Chinese.js')
var eng = require("../../utils/English.js")
//获取应用实例
const app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    language:'',
    // 语言包对象
    content: '',
    world:'../../img/world_03.jpg',
    bom:'../../img/world_bom_02.jpg',
    brief_tit:'Excellent quality from 1905',
    brief_con:"Quality, innovation, enthusiasm and control of popular tastes and industry trends are the brand values that Fabry has adhered to for more than 100 years.Fabbri is a family business founded in 1905. It has been growing for over a hundred years. The company is currently managed by the fourth generation of the family, with a total of 250 employees, 1200 products, 17 product lines, 9 branches (Germany, France, Spain, THE United States, Brazil, Mexico, Argentina, China and Asia), the products are exported to 105 countries worldwide.Its star product, the Amarena Fabbri, is fabry's trademark and the product of countless successful recipes. The company has been successfully diversified, with Italian high quality certifications in the fields of artisan gelato, baked pastry and beverage innovation. With its rich experience in the professional field, Fabbri insists on providing consumers with professional products with their own characteristics. Fabry provides retail customers with a full range of ingredients and recipes for non-alcoholic beverages, cocktails, and gourmet pastries. All retail products are of the same high quality as professional products, and each product has been carefully selected and professionally certified to better meet customer needs. High quality assurance, rich professional field experience, a variety of product choices... Fabry makes every recipe a success!"
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let that = this
    console.log(app.data.language)
    this.setData({
      language: app.data.language
    })
  
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    let that = this
    console.log(app.data.language)
    this.setData({
      language: app.data.language
    })
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})